package com.plugin.core.model;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

public abstract class BaseEntity<T extends BaseEntity<T>> extends Model<T> implements Serializable {

    private static final long serialVersionUID = 1L;


    /** 由于需要获取泛型类型， 仅支持实例化对象调用， 不支持static **/

    public LambdaQueryWrapper<T> lambda(){
        return new LambdaQueryWrapper<>();
    }


}